postOnAnimation

open fun postOnAnimation(@NonNull view: View, @NonNull action: Runnable)(source)

Deprecated

Call postOnAnimation directly.

Causes the Runnable to execute on the next animation time step. The runnable will be run on the user interface thread.

This method can be invoked from outside of the UI thread only when this View is attached to a window.

Parameters

view

View to post this Runnable to

action

The Runnable that will be executed.